package org.dromara.system.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;
import org.dromara.system.domain.XfCompany;
import org.dromara.system.domain.XfNews;
import org.dromara.system.domain.query.XfCompanyQuery;
import org.dromara.system.domain.query.XfNewsQuery;
import org.dromara.system.domain.vo.XfCompanyVo;
import org.dromara.system.domain.vo.XfNewsVo;

import java.util.List;

public interface XfCompanyMapper extends BaseMapperPlus<XfCompany, XfCompanyVo> {
    List<XfCompanyVo> queryList(XfCompanyQuery query);

    Page<XfCompanyVo> selectPageXfCompanyList(@Param("page") Page<XfCompany> page, @Param(Constants.WRAPPER) Wrapper<XfCompany> queryWrapper);

    XfCompanyVo selectXfCompanyById(@Param("companyId") Long companyId);

    XfCompanyVo selectXfCompanyByName(@Param("companyName") Long companyName);


}
